import request from "@/utils/request";

// 查询测试文档列表
export function listDocument(query) {
  return request({
    url: "/dmsIms/document/list",
    method: "get",
    params: query,
  });
}

// 查询记事本测试文档列表
export function listDocumentByNoteId(id) {
  return request({
    url: "/dmsIms/document/doclist/" + id,
    method: "get",
  });
}

// 查询测试文档详细
export function getDocument(id) {
  return request({
    url: "/dmsIms/document/" + id,
    method: "get",
  });
}

// 新增测试文档
export function addDocument(data) {
  return request({
    url: "/dmsIms/document",
    method: "post",
    data: data,
  });
}

// 修改测试文档
export function updateDocument(data) {
  return request({
    url: "/dmsIms/document",
    method: "put",
    data: data,
  });
}

// 删除测试文档
export function delDocument(id) {
  return request({
    url: "/dmsIms/document/" + id,
    method: "delete",
  });
}
